<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="utf-8">
    <title>CGSGDimension - sceneGraph.js</title>
    <link rel="stylesheet" href="http://yui.yahooapis.com/3.9.1/build/cssgrids/cssgrids-min.css">
    <link rel="stylesheet" href="../assets/vendor/prettify/prettify-min.css">
    <link rel="stylesheet" href="../assets/css/main.css" id="site_styles">
    <link rel="shortcut icon" type="image/png" href="../assets/favicon.png">
    <script src="http://yui.yahooapis.com/combo?3.9.1/build/yui/yui-min.js"></script>
</head>
<body class="yui3-skin-sam">

<div id="doc">
    <div id="hd" class="yui3-g header">
        <div class="yui3-u-3-4">
            
                <h1><img src="../../logo/logoCGSG_256x57.png" title="sceneGraph.js"></h1>
            
        </div>
        <div class="yui3-u-1-4 version">
            <em>API Docs for: v2.1.0</em>
        </div>
    </div>
    <div id="bd" class="yui3-g">

        <div class="yui3-u-1-4">
            <div id="docs-sidebar" class="sidebar apidocs">
                <div id="api-list">
    <h2 class="off-left">APIs</h2>
    <div id="api-tabview" class="tabview">
        <ul class="tabs">
            <li><a href="#api-classes">Classes</a></li>
            <li><a href="#api-modules">Modules</a></li>
        </ul>

        <div id="api-tabview-filter">
            <input type="search" id="api-filter" placeholder="Type to filter APIs">
        </div>

        <div id="api-tabview-panel">
            <ul id="api-classes" class="apis classes">
            
                <li><a href="../classes/CGSG.html">CGSG</a></li>
            
                <li><a href="../classes/CGSGAccordion.html">CGSGAccordion</a></li>
            
                <li><a href="../classes/CGSGAnimationManager.html">CGSGAnimationManager</a></li>
            
                <li><a href="../classes/CGSGAnimationMethod.html">CGSGAnimationMethod</a></li>
            
                <li><a href="../classes/CGSGBindEntry.html">CGSGBindEntry</a></li>
            
                <li><a href="../classes/CGSGButtonMode.html">CGSGButtonMode</a></li>
            
                <li><a href="../classes/CGSGCollisionGhostOnDemandTester.html">CGSGCollisionGhostOnDemandTester</a></li>
            
                <li><a href="../classes/CGSGCollisionManager.html">CGSGCollisionManager</a></li>
            
                <li><a href="../classes/CGSGCollisionMethod.html">CGSGCollisionMethod</a></li>
            
                <li><a href="../classes/CGSGCollisionRegionTester.html">CGSGCollisionRegionTester</a></li>
            
                <li><a href="../classes/CGSGCollisionTesterFactory.html">CGSGCollisionTesterFactory</a></li>
            
                <li><a href="../classes/CGSGColor.html">CGSGColor</a></li>
            
                <li><a href="../classes/CGSGCSSManager.html">CGSGCSSManager</a></li>
            
                <li><a href="../classes/CGSGDimension.html">CGSGDimension</a></li>
            
                <li><a href="../classes/CGSGEvent.html">CGSGEvent</a></li>
            
                <li><a href="../classes/CGSGEventManager.html">CGSGEventManager</a></li>
            
                <li><a href="../classes/CGSGHandleBox.html">CGSGHandleBox</a></li>
            
                <li><a href="../classes/CGSGImgManager.html">CGSGImgManager</a></li>
            
                <li><a href="../classes/CGSGInterpolator.html">CGSGInterpolator</a></li>
            
                <li><a href="../classes/CGSGInterpolatorLinear.html">CGSGInterpolatorLinear</a></li>
            
                <li><a href="../classes/CGSGInterpolatorTCB.html">CGSGInterpolatorTCB</a></li>
            
                <li><a href="../classes/CGSGKeyFrame.html">CGSGKeyFrame</a></li>
            
                <li><a href="../classes/CGSGMap.html">CGSGMap</a></li>
            
                <li><a href="../classes/CGSGMask.html">CGSGMask</a></li>
            
                <li><a href="../classes/CGSGMaskCache.html">CGSGMaskCache</a></li>
            
                <li><a href="../classes/CGSGMaskClip.html">CGSGMaskClip</a></li>
            
                <li><a href="../classes/CGSGMath.html">CGSGMath</a></li>
            
                <li><a href="../classes/CGSGNode.html">CGSGNode</a></li>
            
                <li><a href="../classes/CGSGNodeButton.html">CGSGNodeButton</a></li>
            
                <li><a href="../classes/CGSGNodeCircle.html">CGSGNodeCircle</a></li>
            
                <li><a href="../classes/CGSGNodeColorPicker.html">CGSGNodeColorPicker</a></li>
            
                <li><a href="../classes/CGSGNodeCurveTCB.html">CGSGNodeCurveTCB</a></li>
            
                <li><a href="../classes/CGSGNodeDomElement.html">CGSGNodeDomElement</a></li>
            
                <li><a href="../classes/CGSGNodeEllipse.html">CGSGNodeEllipse</a></li>
            
                <li><a href="../classes/CGSGNodeImage.html">CGSGNodeImage</a></li>
            
                <li><a href="../classes/CGSGNodeLine.html">CGSGNodeLine</a></li>
            
                <li><a href="../classes/CGSGNodeSlider.html">CGSGNodeSlider</a></li>
            
                <li><a href="../classes/CGSGNodeSliderHandle.html">CGSGNodeSliderHandle</a></li>
            
                <li><a href="../classes/CGSGNodeSprite.html">CGSGNodeSprite</a></li>
            
                <li><a href="../classes/CGSGNodeSquare.html">CGSGNodeSquare</a></li>
            
                <li><a href="../classes/CGSGNodeTabMenu.html">CGSGNodeTabMenu</a></li>
            
                <li><a href="../classes/CGSGNodeText.html">CGSGNodeText</a></li>
            
                <li><a href="../classes/CGSGNodeWebview.html">CGSGNodeWebview</a></li>
            
                <li><a href="../classes/CGSGParticle.html">CGSGParticle</a></li>
            
                <li><a href="../classes/CGSGParticleEmitter.html">CGSGParticleEmitter</a></li>
            
                <li><a href="../classes/CGSGParticleSystem.html">CGSGParticleSystem</a></li>
            
                <li><a href="../classes/CGSGPickNodeMethod.html">CGSGPickNodeMethod</a></li>
            
                <li><a href="../classes/CGSGPosition.html">CGSGPosition</a></li>
            
                <li><a href="../classes/CGSGRegion.html">CGSGRegion</a></li>
            
                <li><a href="../classes/CGSGRotation.html">CGSGRotation</a></li>
            
                <li><a href="../classes/CGSGScale.html">CGSGScale</a></li>
            
                <li><a href="../classes/CGSGSceneGraph.html">CGSGSceneGraph</a></li>
            
                <li><a href="../classes/CGSGSection.html">CGSGSection</a></li>
            
                <li><a href="../classes/CGSGTimeline.html">CGSGTimeline</a></li>
            
                <li><a href="../classes/CGSGTraverser.html">CGSGTraverser</a></li>
            
                <li><a href="../classes/CGSGVector2D.html">CGSGVector2D</a></li>
            
                <li><a href="../classes/CGSGView.html">CGSGView</a></li>
            
                <li><a href="../classes/CGSGWEBVIEWMODE.html">CGSGWEBVIEWMODE</a></li>
            
                <li><a href="../classes/CGSGWrapMode.html">CGSGWrapMode</a></li>
            
                <li><a href="../classes/GLOBAL_CONSTANTS.html">GLOBAL_CONSTANTS</a></li>
            
                <li><a href="../classes/GLOBAL_METHODS.html">GLOBAL_METHODS</a></li>
            
                <li><a href="../classes/GLOBAL_PROPERTIES.html">GLOBAL_PROPERTIES</a></li>
            
                <li><a href="../classes/UTIL_ARRAY.html">UTIL_ARRAY</a></li>
            
                <li><a href="../classes/WUICCGSGNodeImageFactory.html">WUICCGSGNodeImageFactory</a></li>
            
            </ul>

            <ul id="api-modules" class="apis modules">
            
                <li><a href="../modules/Animation.html">Animation</a></li>
            
                <li><a href="../modules/Collision.html">Collision</a></li>
            
                <li><a href="../modules/Math.html">Math</a></li>
            
                <li><a href="../modules/Node.html">Node</a></li>
            
                <li><a href="../modules/ParticleSystem.html">ParticleSystem</a></li>
            
                <li><a href="../modules/Scene.html">Scene</a></li>
            
                <li><a href="../modules/Util.html">Util</a></li>
            
            </ul>
        </div>
    </div>
</div>

            </div>
        </div>
        <div class="yui3-u-3-4">
                <div id="api-options">
        Show:
        <label for="api-show-inherited">
            <input type="checkbox" id="api-show-inherited" checked>
            Inherited
        </label>

        <label for="api-show-protected">
            <input type="checkbox" id="api-show-protected">
            Protected
        </label>

        <label for="api-show-private">
            <input type="checkbox" id="api-show-private">
            Private
        </label>
        <label for="api-show-deprecated">
            <input type="checkbox" id="api-show-deprecated">
            Deprecated
        </label>

    </div>


            <div class="apidocs">
                <div id="docs-main">
                    <div class="content">
                        <h1>CGSGDimension Class</h1>
<div class="box meta">
    

    
        <div class="extends">
            Extends <a href="../classes/CGSGVector2D.html" class="crosslink">CGSGVector2D</a>
        </div>
    

    
        <div class="foundat">
            Defined in: <a href="../files/src_utils_class.region.js.html#l216"><code>src&#x2F;utils&#x2F;class.region.js:216</code></a>
        </div>
    

    
        
            Module: <a href="../modules/Util.html">Util</a>
        
    

    
</div>



<div class="box intro">
    <p>A Dimension object</p>

</div>


    <div class="constructor">
        <h2>Constructor</h2>
        <div id="method_CGSGDimension" class="method item">
    <h3 class="name"><code>CGSGDimension</code></h3>

    
        <div class="args">
            <span class="paren">(</span><ul class="args-list inline commas">
            
                <li class="arg">
                    
                        <code>width</code>
                    
                </li>
            
                <li class="arg">
                    
                        <code>height</code>
                    
                </li>
            
            </ul><span class="paren">)</span>
        </div>
    

    

    

    

    

    

    

    

    <div class="meta">
        
            
                
                <p>
                
                Defined in
                
            
        
        
        <a href="../files/src_utils_class.region.js.html#l216"><code>src&#x2F;utils&#x2F;class.region.js:216</code></a>
        
        </p>


        

        
    </div>

    <div class="description">
        
    </div>

    
        <div class="params">
            <h4>Parameters:</h4>

            <ul class="params-list">
            
                <li class="param">
                    
                        <code class="param-name">width</code>
                        <span class="type"><a href="https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Number" class="crosslink external" target="_blank">Number</a></span>
                    

                    

                    <div class="param-description">
                         
                    </div>

                    
                </li>
            
                <li class="param">
                    
                        <code class="param-name">height</code>
                        <span class="type"><a href="https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Number" class="crosslink external" target="_blank">Number</a></span>
                    

                    

                    <div class="param-description">
                         
                    </div>

                    
                </li>
            
            </ul>
        </div>
    

    

    
</div>

    </div>


<div id="classdocs" class="tabview">
    <ul class="api-class-tabs">
        <li class="api-class-tab index"><a href="#index">Index</a></li>

        
            <li class="api-class-tab methods"><a href="#methods">Methods</a></li>
        
        
            <li class="api-class-tab properties"><a href="#properties">Properties</a></li>
        
        
        
    </ul>

    <div>
        <div id="index" class="api-class-tabpanel index">
            <h2 class="off-left">Item Index</h2>

            
                <div class="index-section methods">
                    <h3>Methods</h3>

                    <ul class="index-list methods extends">
                        
                            <li class="index-item method public inherited">
                                <a href="#method_add">add</a>

                                
                                
                            </li>
                        
                            <li class="index-item method public inherited">
                                <a href="#method_addEquals">addEquals</a>

                                
                                
                            </li>
                        
                            <li class="index-item method inherited">
                                <a href="#method_copy">copy</a>

                                
                                
                            </li>
                        
                            <li class="index-item method public inherited">
                                <a href="#method_cross">cross</a>

                                
                                
                            </li>
                        
                            <li class="index-item method public inherited">
                                <a href="#method_divide">divide</a>

                                
                                
                            </li>
                        
                            <li class="index-item method public inherited">
                                <a href="#method_divideByFloat">divideByFloat</a>

                                
                                
                            </li>
                        
                            <li class="index-item method public inherited">
                                <a href="#method_divideByFloatEquals">divideByFloatEquals</a>

                                
                                
                            </li>
                        
                            <li class="index-item method public inherited">
                                <a href="#method_divideEquals">divideEquals</a>

                                
                                
                            </li>
                        
                            <li class="index-item method public inherited">
                                <a href="#method_dot">dot</a>

                                
                                
                            </li>
                        
                            <li class="index-item method public inherited">
                                <a href="#method_getDistance">getDistance</a>

                                
                                
                            </li>
                        
                            <li class="index-item method public inherited">
                                <a href="#method_getLength">getLength</a>

                                
                                
                            </li>
                        
                            <li class="index-item method public inherited">
                                <a href="#method_getSquaredLength">getSquaredLength</a>

                                
                                
                            </li>
                        
                            <li class="index-item method">
                                <a href="#method_isEmpty">isEmpty</a>

                                
                                
                            </li>
                        
                            <li class="index-item method public inherited">
                                <a href="#method_multiply">multiply</a>

                                
                                
                            </li>
                        
                            <li class="index-item method public inherited">
                                <a href="#method_multiplyByFloat">multiplyByFloat</a>

                                
                                
                            </li>
                        
                            <li class="index-item method public inherited">
                                <a href="#method_multiplyByFloatEquals">multiplyByFloatEquals</a>

                                
                                
                            </li>
                        
                            <li class="index-item method public inherited">
                                <a href="#method_multiplyEquals">multiplyEquals</a>

                                
                                
                            </li>
                        
                            <li class="index-item method public inherited">
                                <a href="#method_normalize">normalize</a>

                                
                                
                            </li>
                        
                            <li class="index-item method public inherited">
                                <a href="#method_perp">perp</a>

                                
                                
                            </li>
                        
                            <li class="index-item method public inherited">
                                <a href="#method_perpendicular">perpendicular</a>

                                
                                
                            </li>
                        
                            <li class="index-item method public inherited">
                                <a href="#method_project">project</a>

                                
                                
                            </li>
                        
                            <li class="index-item method">
                                <a href="#method_resizeBy">resizeBy</a>

                                
                                
                            </li>
                        
                            <li class="index-item method">
                                <a href="#method_resizeTo">resizeTo</a>

                                
                                
                            </li>
                        
                            <li class="index-item method">
                                <a href="#method_resizeWith">resizeWith</a>

                                
                                
                            </li>
                        
                            <li class="index-item method public inherited">
                                <a href="#method_rotate">rotate</a>

                                
                                
                            </li>
                        
                            <li class="index-item method public inherited">
                                <a href="#method_sign">sign</a>

                                
                                
                            </li>
                        
                            <li class="index-item method public inherited">
                                <a href="#method_subtract">subtract</a>

                                
                                
                            </li>
                        
                            <li class="index-item method public inherited">
                                <a href="#method_subtractEquals">subtractEquals</a>

                                
                                
                            </li>
                        
                            <li class="index-item method public inherited">
                                <a href="#method_toString">toString</a>

                                
                                
                            </li>
                        
                            <li class="index-item method public inherited">
                                <a href="#method_unit">unit</a>

                                
                                
                            </li>
                        
                            <li class="index-item method public inherited">
                                <a href="#method_unitEquals">unitEquals</a>

                                
                                
                            </li>
                        
                            <li class="index-item method public inherited">
                                <a href="#method_unitFast">unitFast</a>

                                
                                
                            </li>
                        
                    </ul>
                </div>
            

            
                <div class="index-section properties">
                    <h3>Properties</h3>

                    <ul class="index-list properties extends">
                        
                            <li class="index-item property">
                                <a href="#property_height">height</a>

                                
                                
                            </li>
                        
                            <li class="index-item property">
                                <a href="#property_width">width</a>

                                
                                
                            </li>
                        
                            <li class="index-item property inherited">
                                <a href="#property_x">x</a>

                                
                                
                            </li>
                        
                            <li class="index-item property inherited">
                                <a href="#property_y">y</a>

                                
                                
                            </li>
                        
                    </ul>
                </div>
            

            

            
        </div>

        
            <div id="methods" class="api-class-tabpanel">
                <h2 class="off-left">Methods</h2>

                
                    <div id="method_add" class="method item public inherited">
    <h3 class="name"><code>add</code></h3>

    
        <div class="args">
            <span class="paren">(</span><ul class="args-list inline commas">
            
                <li class="arg">
                    
                        <code>vector</code>
                    
                </li>
            
            </ul><span class="paren">)</span>
        </div>
    

    

    

    
        <span class="flag public">public</span>
    

    

    

    

    

    <div class="meta">
        
            
                <p>Inherited from
                <a href="../classes/CGSGVector2D.html#method_add">CGSGVector2D</a>:
            
        
        
        <a href="../files/src_utils_math_class.vector2D.js.html#l61"><code>src&#x2F;utils&#x2F;math&#x2F;class.vector2D.js:61</code></a>
        
        </p>


        

        
    </div>

    <div class="description">
        <p>returns a new vector added to the value passed in parameter</p>

    </div>

    
        <div class="params">
            <h4>Parameters:</h4>

            <ul class="params-list">
            
                <li class="param">
                    
                        <code class="param-name">vector</code>
                        <span class="type"><a href="../classes/CGSGVector2D.html" class="crosslink">CGSGVector2D</a></span>
                    

                    

                    <div class="param-description">
                        
                    </div>

                    
                </li>
            
            </ul>
        </div>
    

    

    
</div>

                
                    <div id="method_addEquals" class="method item public inherited">
    <h3 class="name"><code>addEquals</code></h3>

    
        <div class="args">
            <span class="paren">(</span><ul class="args-list inline commas">
            
                <li class="arg">
                    
                        <code>vector</code>
                    
                </li>
            
            </ul><span class="paren">)</span>
        </div>
    

    

    

    
        <span class="flag public">public</span>
    

    

    

    

    

    <div class="meta">
        
            
                <p>Inherited from
                <a href="../classes/CGSGVector2D.html#method_addEquals">CGSGVector2D</a>:
            
        
        
        <a href="../files/src_utils_math_class.vector2D.js.html#l71"><code>src&#x2F;utils&#x2F;math&#x2F;class.vector2D.js:71</code></a>
        
        </p>


        

        
    </div>

    <div class="description">
        <p>add to this vector, the value passed in parameter</p>

    </div>

    
        <div class="params">
            <h4>Parameters:</h4>

            <ul class="params-list">
            
                <li class="param">
                    
                        <code class="param-name">vector</code>
                        <span class="type"><a href="../classes/CGSGVector2D.html" class="crosslink">CGSGVector2D</a></span>
                    

                    

                    <div class="param-description">
                        
                    </div>

                    
                </li>
            
            </ul>
        </div>
    

    

    
</div>

                
                    <div id="method_copy" class="method item">
    <h3 class="name"><code>copy</code></h3>

    
        <span class="paren">()</span>
    

    
        <span class="returns-inline">
            <span class="type"><a href="../classes/CGSGDimension.html" class="crosslink">CGSGDimension</a></span>
        </span>
    

    

    

    

    

    

    

    <div class="meta">
        
            <p>Inherited from
            <a href="../classes/CGSGVector2D.html#method_copy">
                CGSGVector2D
            </a>
            
            but overwritten in
            
        
        
        <a href="../files/src_utils_class.region.js.html#l246"><code>src&#x2F;utils&#x2F;class.region.js:246</code></a>
        
        </p>


        

        
    </div>

    <div class="description">
        <p>Return a new object with these attributes</p>

    </div>

    

    
        <div class="returns">
            <h4>Returns:</h4>

            <div class="returns-description">
                
                    
                        <span class="type"><a href="../classes/CGSGDimension.html" class="crosslink">CGSGDimension</a></span>:
                    
                
            </div>
        </div>
    

    
</div>

                
                    <div id="method_cross" class="method item public inherited">
    <h3 class="name"><code>cross</code></h3>

    
        <span class="paren">()</span>
    

    

    

    
        <span class="flag public">public</span>
    

    

    

    

    

    <div class="meta">
        
            
                <p>Inherited from
                <a href="../classes/CGSGVector2D.html#method_cross">CGSGVector2D</a>:
            
        
        
        <a href="../files/src_utils_math_class.vector2D.js.html#l271"><code>src&#x2F;utils&#x2F;math&#x2F;class.vector2D.js:271</code></a>
        
        </p>


        

        
    </div>

    <div class="description">
        <p>Get cross product of this vector and another vector</p>

    </div>

    

    

    
</div>

                
                    <div id="method_divide" class="method item public inherited">
    <h3 class="name"><code>divide</code></h3>

    
        <div class="args">
            <span class="paren">(</span><ul class="args-list inline commas">
            
                <li class="arg">
                    
                        <code>vector</code>
                    
                </li>
            
            </ul><span class="paren">)</span>
        </div>
    

    

    

    
        <span class="flag public">public</span>
    

    

    

    

    

    <div class="meta">
        
            
                <p>Inherited from
                <a href="../classes/CGSGVector2D.html#method_divide">CGSGVector2D</a>:
            
        
        
        <a href="../files/src_utils_math_class.vector2D.js.html#l124"><code>src&#x2F;utils&#x2F;math&#x2F;class.vector2D.js:124</code></a>
        
        </p>


        

        
    </div>

    <div class="description">
        <p>return a new vector divided by the value passed in parameter</p>

    </div>

    
        <div class="params">
            <h4>Parameters:</h4>

            <ul class="params-list">
            
                <li class="param">
                    
                        <code class="param-name">vector</code>
                        <span class="type"><a href="../classes/CGSGVector2D.html" class="crosslink">CGSGVector2D</a></span>
                    

                    

                    <div class="param-description">
                        
                    </div>

                    
                </li>
            
            </ul>
        </div>
    

    

    
</div>

                
                    <div id="method_divideByFloat" class="method item public inherited">
    <h3 class="name"><code>divideByFloat</code></h3>

    
        <div class="args">
            <span class="paren">(</span><ul class="args-list inline commas">
            
                <li class="arg">
                    
                        <code>f</code>
                    
                </li>
            
            </ul><span class="paren">)</span>
        </div>
    

    

    

    
        <span class="flag public">public</span>
    

    

    

    

    

    <div class="meta">
        
            
                <p>Inherited from
                <a href="../classes/CGSGVector2D.html#method_divideByFloat">CGSGVector2D</a>:
            
        
        
        <a href="../files/src_utils_math_class.vector2D.js.html#l166"><code>src&#x2F;utils&#x2F;math&#x2F;class.vector2D.js:166</code></a>
        
        </p>


        

        
    </div>

    <div class="description">
        <p>Divide x and y by f</p>

    </div>

    
        <div class="params">
            <h4>Parameters:</h4>

            <ul class="params-list">
            
                <li class="param">
                    
                        <code class="param-name">f</code>
                        <span class="type"><a href="https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Number" class="crosslink external" target="_blank">Number</a></span>
                    

                    

                    <div class="param-description">
                        
                    </div>

                    
                </li>
            
            </ul>
        </div>
    

    

    
</div>

                
                    <div id="method_divideByFloatEquals" class="method item public inherited">
    <h3 class="name"><code>divideByFloatEquals</code></h3>

    
        <div class="args">
            <span class="paren">(</span><ul class="args-list inline commas">
            
                <li class="arg">
                    
                        <code>f</code>
                    
                </li>
            
            </ul><span class="paren">)</span>
        </div>
    

    

    

    
        <span class="flag public">public</span>
    

    

    

    

    

    <div class="meta">
        
            
                <p>Inherited from
                <a href="../classes/CGSGVector2D.html#method_divideByFloatEquals">CGSGVector2D</a>:
            
        
        
        <a href="../files/src_utils_math_class.vector2D.js.html#l176"><code>src&#x2F;utils&#x2F;math&#x2F;class.vector2D.js:176</code></a>
        
        </p>


        

        
    </div>

    <div class="description">
        <p>Divide x and y by f</p>

    </div>

    
        <div class="params">
            <h4>Parameters:</h4>

            <ul class="params-list">
            
                <li class="param">
                    
                        <code class="param-name">f</code>
                        <span class="type"><a href="https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Number" class="crosslink external" target="_blank">Number</a></span>
                    

                    

                    <div class="param-description">
                        
                    </div>

                    
                </li>
            
            </ul>
        </div>
    

    

    
</div>

                
                    <div id="method_divideEquals" class="method item public inherited">
    <h3 class="name"><code>divideEquals</code></h3>

    
        <div class="args">
            <span class="paren">(</span><ul class="args-list inline commas">
            
                <li class="arg">
                    
                        <code>vector</code>
                    
                </li>
            
            </ul><span class="paren">)</span>
        </div>
    

    

    

    
        <span class="flag public">public</span>
    

    

    

    

    

    <div class="meta">
        
            
                <p>Inherited from
                <a href="../classes/CGSGVector2D.html#method_divideEquals">CGSGVector2D</a>:
            
        
        
        <a href="../files/src_utils_math_class.vector2D.js.html#l134"><code>src&#x2F;utils&#x2F;math&#x2F;class.vector2D.js:134</code></a>
        
        </p>


        

        
    </div>

    <div class="description">
        <p>divide to this vector, the value passed in parameter</p>

    </div>

    
        <div class="params">
            <h4>Parameters:</h4>

            <ul class="params-list">
            
                <li class="param">
                    
                        <code class="param-name">vector</code>
                        <span class="type"><a href="../classes/CGSGVector2D.html" class="crosslink">CGSGVector2D</a></span>
                    

                    

                    <div class="param-description">
                        
                    </div>

                    
                </li>
            
            </ul>
        </div>
    

    

    
</div>

                
                    <div id="method_dot" class="method item public inherited">
    <h3 class="name"><code>dot</code></h3>

    
        <span class="paren">()</span>
    

    

    

    
        <span class="flag public">public</span>
    

    

    

    

    

    <div class="meta">
        
            
                <p>Inherited from
                <a href="../classes/CGSGVector2D.html#method_dot">CGSGVector2D</a>:
            
        
        
        <a href="../files/src_utils_math_class.vector2D.js.html#l262"><code>src&#x2F;utils&#x2F;math&#x2F;class.vector2D.js:262</code></a>
        
        </p>


        

        
    </div>

    <div class="description">
        <p>Get dot product of this vector and another vector</p>

    </div>

    

    

    
</div>

                
                    <div id="method_getDistance" class="method item public inherited">
    <h3 class="name"><code>getDistance</code></h3>

    
        <div class="args">
            <span class="paren">(</span><ul class="args-list inline commas">
            
                <li class="arg">
                    
                        <code>vector</code>
                    
                </li>
            
            </ul><span class="paren">)</span>
        </div>
    

    
        <span class="returns-inline">
            <span class="type"><a href="https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Number" class="crosslink external" target="_blank">Number</a></span>
        </span>
    

    

    
        <span class="flag public">public</span>
    

    

    

    

    

    <div class="meta">
        
            
                <p>Inherited from
                <a href="../classes/CGSGVector2D.html#method_getDistance">CGSGVector2D</a>:
            
        
        
        <a href="../files/src_utils_math_class.vector2D.js.html#l187"><code>src&#x2F;utils&#x2F;math&#x2F;class.vector2D.js:187</code></a>
        
        </p>


        

        
    </div>

    <div class="description">
        <p>Compute the euclidian distance between this vector and the one passe in parameter</p>

    </div>

    
        <div class="params">
            <h4>Parameters:</h4>

            <ul class="params-list">
            
                <li class="param">
                    
                        <code class="param-name">vector</code>
                        <span class="type"><a href="../classes/CGSGVector2D.html" class="crosslink">CGSGVector2D</a></span>
                    

                    

                    <div class="param-description">
                        
                    </div>

                    
                </li>
            
            </ul>
        </div>
    

    
        <div class="returns">
            <h4>Returns:</h4>

            <div class="returns-description">
                
                    
                        <span class="type"><a href="https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Number" class="crosslink external" target="_blank">Number</a></span>:
                    
                
            </div>
        </div>
    

    
</div>

                
                    <div id="method_getLength" class="method item public inherited">
    <h3 class="name"><code>getLength</code></h3>

    
        <span class="paren">()</span>
    

    
        <span class="returns-inline">
            <span class="type"><a href="https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Number" class="crosslink external" target="_blank">Number</a></span>
        </span>
    

    

    
        <span class="flag public">public</span>
    

    

    

    

    

    <div class="meta">
        
            
                <p>Inherited from
                <a href="../classes/CGSGVector2D.html#method_getLength">CGSGVector2D</a>:
            
        
        
        <a href="../files/src_utils_math_class.vector2D.js.html#l214"><code>src&#x2F;utils&#x2F;math&#x2F;class.vector2D.js:214</code></a>
        
        </p>


        

        
    </div>

    <div class="description">
        
    </div>

    

    
        <div class="returns">
            <h4>Returns:</h4>

            <div class="returns-description">
                
                    
                        <span class="type"><a href="https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Number" class="crosslink external" target="_blank">Number</a></span>:
                    
                
            </div>
        </div>
    

    
</div>

                
                    <div id="method_getSquaredLength" class="method item public inherited">
    <h3 class="name"><code>getSquaredLength</code></h3>

    
        <span class="paren">()</span>
    

    
        <span class="returns-inline">
            <span class="type"><a href="https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Number" class="crosslink external" target="_blank">Number</a></span>
        </span>
    

    

    
        <span class="flag public">public</span>
    

    

    

    

    

    <div class="meta">
        
            
                <p>Inherited from
                <a href="../classes/CGSGVector2D.html#method_getSquaredLength">CGSGVector2D</a>:
            
        
        
        <a href="../files/src_utils_math_class.vector2D.js.html#l223"><code>src&#x2F;utils&#x2F;math&#x2F;class.vector2D.js:223</code></a>
        
        </p>


        

        
    </div>

    <div class="description">
        
    </div>

    

    
        <div class="returns">
            <h4>Returns:</h4>

            <div class="returns-description">
                
                    
                        <span class="type"><a href="https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Number" class="crosslink external" target="_blank">Number</a></span>:
                    
                
            </div>
        </div>
    

    
</div>

                
                    <div id="method_isEmpty" class="method item">
    <h3 class="name"><code>isEmpty</code></h3>

    
        <span class="paren">()</span>
    

    
        <span class="returns-inline">
            <span class="type"><a href="https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Boolean" class="crosslink external" target="_blank">Boolean</a></span>
        </span>
    

    

    

    

    

    

    

    <div class="meta">
        
            
                
                <p>
                
                Defined in
                
            
        
        
        <a href="../files/src_utils_class.region.js.html#l300"><code>src&#x2F;utils&#x2F;class.region.js:300</code></a>
        
        </p>


        

        
    </div>

    <div class="description">
        <p>Return true if no pixels are inside the dimension</p>

    </div>

    

    
        <div class="returns">
            <h4>Returns:</h4>

            <div class="returns-description">
                
                    
                        <span class="type"><a href="https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Boolean" class="crosslink external" target="_blank">Boolean</a></span>:
                    
                
            </div>
        </div>
    

    
</div>

                
                    <div id="method_multiply" class="method item public inherited">
    <h3 class="name"><code>multiply</code></h3>

    
        <div class="args">
            <span class="paren">(</span><ul class="args-list inline commas">
            
                <li class="arg">
                    
                        <code>vector</code>
                    
                </li>
            
            </ul><span class="paren">)</span>
        </div>
    

    

    

    
        <span class="flag public">public</span>
    

    

    

    

    

    <div class="meta">
        
            
                <p>Inherited from
                <a href="../classes/CGSGVector2D.html#method_multiply">CGSGVector2D</a>:
            
        
        
        <a href="../files/src_utils_math_class.vector2D.js.html#l103"><code>src&#x2F;utils&#x2F;math&#x2F;class.vector2D.js:103</code></a>
        
        </p>


        

        
    </div>

    <div class="description">
        <p>returns a new vector multiplied to the value passed in parameter</p>

    </div>

    
        <div class="params">
            <h4>Parameters:</h4>

            <ul class="params-list">
            
                <li class="param">
                    
                        <code class="param-name">vector</code>
                        <span class="type"><a href="../classes/CGSGVector2D.html" class="crosslink">CGSGVector2D</a></span>
                    

                    

                    <div class="param-description">
                        
                    </div>

                    
                </li>
            
            </ul>
        </div>
    

    

    
</div>

                
                    <div id="method_multiplyByFloat" class="method item public inherited">
    <h3 class="name"><code>multiplyByFloat</code></h3>

    
        <div class="args">
            <span class="paren">(</span><ul class="args-list inline commas">
            
                <li class="arg">
                    
                        <code>f</code>
                    
                </li>
            
            </ul><span class="paren">)</span>
        </div>
    

    

    

    
        <span class="flag public">public</span>
    

    

    

    

    

    <div class="meta">
        
            
                <p>Inherited from
                <a href="../classes/CGSGVector2D.html#method_multiplyByFloat">CGSGVector2D</a>:
            
        
        
        <a href="../files/src_utils_math_class.vector2D.js.html#l145"><code>src&#x2F;utils&#x2F;math&#x2F;class.vector2D.js:145</code></a>
        
        </p>


        

        
    </div>

    <div class="description">
        <p>Multiply x and y by f</p>

    </div>

    
        <div class="params">
            <h4>Parameters:</h4>

            <ul class="params-list">
            
                <li class="param">
                    
                        <code class="param-name">f</code>
                        <span class="type"><a href="https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Number" class="crosslink external" target="_blank">Number</a></span>
                    

                    

                    <div class="param-description">
                        
                    </div>

                    
                </li>
            
            </ul>
        </div>
    

    

    
</div>

                
                    <div id="method_multiplyByFloatEquals" class="method item public inherited">
    <h3 class="name"><code>multiplyByFloatEquals</code></h3>

    
        <div class="args">
            <span class="paren">(</span><ul class="args-list inline commas">
            
                <li class="arg">
                    
                        <code>f</code>
                    
                </li>
            
            </ul><span class="paren">)</span>
        </div>
    

    

    

    
        <span class="flag public">public</span>
    

    

    

    

    

    <div class="meta">
        
            
                <p>Inherited from
                <a href="../classes/CGSGVector2D.html#method_multiplyByFloatEquals">CGSGVector2D</a>:
            
        
        
        <a href="../files/src_utils_math_class.vector2D.js.html#l155"><code>src&#x2F;utils&#x2F;math&#x2F;class.vector2D.js:155</code></a>
        
        </p>


        

        
    </div>

    <div class="description">
        <p>Multiply x and y by f</p>

    </div>

    
        <div class="params">
            <h4>Parameters:</h4>

            <ul class="params-list">
            
                <li class="param">
                    
                        <code class="param-name">f</code>
                        <span class="type"><a href="https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Number" class="crosslink external" target="_blank">Number</a></span>
                    

                    

                    <div class="param-description">
                        
                    </div>

                    
                </li>
            
            </ul>
        </div>
    

    

    
</div>

                
                    <div id="method_multiplyEquals" class="method item public inherited">
    <h3 class="name"><code>multiplyEquals</code></h3>

    
        <div class="args">
            <span class="paren">(</span><ul class="args-list inline commas">
            
                <li class="arg">
                    
                        <code>vector</code>
                    
                </li>
            
            </ul><span class="paren">)</span>
        </div>
    

    

    

    
        <span class="flag public">public</span>
    

    

    

    

    

    <div class="meta">
        
            
                <p>Inherited from
                <a href="../classes/CGSGVector2D.html#method_multiplyEquals">CGSGVector2D</a>:
            
        
        
        <a href="../files/src_utils_math_class.vector2D.js.html#l113"><code>src&#x2F;utils&#x2F;math&#x2F;class.vector2D.js:113</code></a>
        
        </p>


        

        
    </div>

    <div class="description">
        <p>multiply to this vector, the value passed in parameter</p>

    </div>

    
        <div class="params">
            <h4>Parameters:</h4>

            <ul class="params-list">
            
                <li class="param">
                    
                        <code class="param-name">vector</code>
                        <span class="type"><a href="../classes/CGSGVector2D.html" class="crosslink">CGSGVector2D</a></span>
                    

                    

                    <div class="param-description">
                        
                    </div>

                    
                </li>
            
            </ul>
        </div>
    

    

    
</div>

                
                    <div id="method_normalize" class="method item public inherited">
    <h3 class="name"><code>normalize</code></h3>

    
        <span class="paren">()</span>
    

    

    

    
        <span class="flag public">public</span>
    

    

    

    

    

    <div class="meta">
        
            
                <p>Inherited from
                <a href="../classes/CGSGVector2D.html#method_normalize">CGSGVector2D</a>:
            
        
        
        <a href="../files/src_utils_math_class.vector2D.js.html#l232"><code>src&#x2F;utils&#x2F;math&#x2F;class.vector2D.js:232</code></a>
        
        </p>


        

        
    </div>

    <div class="description">
        <p>Normalize this vector</p>

    </div>

    

    

    
</div>

                
                    <div id="method_perp" class="method item public inherited">
    <h3 class="name"><code>perp</code></h3>

    
        <span class="paren">()</span>
    

    

    

    
        <span class="flag public">public</span>
    

    

    

    

    

    <div class="meta">
        
            
                <p>Inherited from
                <a href="../classes/CGSGVector2D.html#method_perp">CGSGVector2D</a>:
            
        
        
        <a href="../files/src_utils_math_class.vector2D.js.html#l315"><code>src&#x2F;utils&#x2F;math&#x2F;class.vector2D.js:315</code></a>
        
        </p>


        

        
    </div>

    <div class="description">
        <p>Get a perpendicular vector of this vector</p>

    </div>

    

    

    
</div>

                
                    <div id="method_perpendicular" class="method item public inherited">
    <h3 class="name"><code>perpendicular</code></h3>

    
        <span class="paren">()</span>
    

    

    

    
        <span class="flag public">public</span>
    

    

    

    

    

    <div class="meta">
        
            
                <p>Inherited from
                <a href="../classes/CGSGVector2D.html#method_perpendicular">CGSGVector2D</a>:
            
        
        
        <a href="../files/src_utils_math_class.vector2D.js.html#l324"><code>src&#x2F;utils&#x2F;math&#x2F;class.vector2D.js:324</code></a>
        
        </p>


        

        
    </div>

    <div class="description">
        <p>Get a vector perpendicular to this vector and another vector</p>

    </div>

    

    

    
</div>

                
                    <div id="method_project" class="method item public inherited">
    <h3 class="name"><code>project</code></h3>

    
        <span class="paren">()</span>
    

    

    

    
        <span class="flag public">public</span>
    

    

    

    

    

    <div class="meta">
        
            
                <p>Inherited from
                <a href="../classes/CGSGVector2D.html#method_project">CGSGVector2D</a>:
            
        
        
        <a href="../files/src_utils_math_class.vector2D.js.html#l333"><code>src&#x2F;utils&#x2F;math&#x2F;class.vector2D.js:333</code></a>
        
        </p>


        

        
    </div>

    <div class="description">
        <p>Get a projected vector of this vector and another vector</p>

    </div>

    

    

    
</div>

                
                    <div id="method_resizeBy" class="method item">
    <h3 class="name"><code>resizeBy</code></h3>

    
        <div class="args">
            <span class="paren">(</span><ul class="args-list inline commas">
            
                <li class="arg">
                    
                        <code>widthFactor</code>
                    
                </li>
            
                <li class="arg">
                    
                        <code>heightFactor</code>
                    
                </li>
            
            </ul><span class="paren">)</span>
        </div>
    

    

    

    

    

    

    

    

    <div class="meta">
        
            
                
                <p>
                
                Defined in
                
            
        
        
        <a href="../files/src_utils_class.region.js.html#l270"><code>src&#x2F;utils&#x2F;class.region.js:270</code></a>
        
        </p>


        

        
    </div>

    <div class="description">
        <p>Multiply current dimension by these new ones</p>

    </div>

    
        <div class="params">
            <h4>Parameters:</h4>

            <ul class="params-list">
            
                <li class="param">
                    
                        <code class="param-name">widthFactor</code>
                        <span class="type"><a href="https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Number" class="crosslink external" target="_blank">Number</a></span>
                    

                    

                    <div class="param-description">
                         
                    </div>

                    
                </li>
            
                <li class="param">
                    
                        <code class="param-name">heightFactor</code>
                        <span class="type"><a href="https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Number" class="crosslink external" target="_blank">Number</a></span>
                    

                    

                    <div class="param-description">
                         
                    </div>

                    
                </li>
            
            </ul>
        </div>
    

    

    
</div>

                
                    <div id="method_resizeTo" class="method item">
    <h3 class="name"><code>resizeTo</code></h3>

    
        <div class="args">
            <span class="paren">(</span><ul class="args-list inline commas">
            
                <li class="arg">
                    
                        <code>newWidth</code>
                    
                </li>
            
                <li class="arg">
                    
                        <code>newHeight</code>
                    
                </li>
            
            </ul><span class="paren">)</span>
        </div>
    

    

    

    

    

    

    

    

    <div class="meta">
        
            
                
                <p>
                
                Defined in
                
            
        
        
        <a href="../files/src_utils_class.region.js.html#l255"><code>src&#x2F;utils&#x2F;class.region.js:255</code></a>
        
        </p>


        

        
    </div>

    <div class="description">
        <p>Replace current dimension by these new ones</p>

    </div>

    
        <div class="params">
            <h4>Parameters:</h4>

            <ul class="params-list">
            
                <li class="param">
                    
                        <code class="param-name">newWidth</code>
                        <span class="type"><a href="https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Number" class="crosslink external" target="_blank">Number</a></span>
                    

                    

                    <div class="param-description">
                         
                    </div>

                    
                </li>
            
                <li class="param">
                    
                        <code class="param-name">newHeight</code>
                        <span class="type"><a href="https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Number" class="crosslink external" target="_blank">Number</a></span>
                    

                    

                    <div class="param-description">
                         
                    </div>

                    
                </li>
            
            </ul>
        </div>
    

    

    
</div>

                
                    <div id="method_resizeWith" class="method item">
    <h3 class="name"><code>resizeWith</code></h3>

    
        <div class="args">
            <span class="paren">(</span><ul class="args-list inline commas">
            
                <li class="arg">
                    
                        <code>width</code>
                    
                </li>
            
                <li class="arg">
                    
                        <code>height</code>
                    
                </li>
            
            </ul><span class="paren">)</span>
        </div>
    

    

    

    

    

    

    

    

    <div class="meta">
        
            
                
                <p>
                
                Defined in
                
            
        
        
        <a href="../files/src_utils_class.region.js.html#l285"><code>src&#x2F;utils&#x2F;class.region.js:285</code></a>
        
        </p>


        

        
    </div>

    <div class="description">
        <p>Increase/decrease current dimension with adding values</p>

    </div>

    
        <div class="params">
            <h4>Parameters:</h4>

            <ul class="params-list">
            
                <li class="param">
                    
                        <code class="param-name">width</code>
                        <span class="type"><a href="https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Number" class="crosslink external" target="_blank">Number</a></span>
                    

                    

                    <div class="param-description">
                         
                    </div>

                    
                </li>
            
                <li class="param">
                    
                        <code class="param-name">height</code>
                        <span class="type"><a href="https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Number" class="crosslink external" target="_blank">Number</a></span>
                    

                    

                    <div class="param-description">
                         
                    </div>

                    
                </li>
            
            </ul>
        </div>
    

    

    
</div>

                
                    <div id="method_rotate" class="method item public inherited">
    <h3 class="name"><code>rotate</code></h3>

    
        <div class="args">
            <span class="paren">(</span><ul class="args-list inline commas">
            
                <li class="arg">
                    
                        <code>angle</code>
                    
                </li>
            
            </ul><span class="paren">)</span>
        </div>
    

    

    

    
        <span class="flag public">public</span>
    

    

    

    

    

    <div class="meta">
        
            
                <p>Inherited from
                <a href="../classes/CGSGVector2D.html#method_rotate">CGSGVector2D</a>:
            
        
        
        <a href="../files/src_utils_math_class.vector2D.js.html#l201"><code>src&#x2F;utils&#x2F;math&#x2F;class.vector2D.js:201</code></a>
        
        </p>


        

        
    </div>

    <div class="description">
        <p>rotate this vector around its origin</p>

    </div>

    
        <div class="params">
            <h4>Parameters:</h4>

            <ul class="params-list">
            
                <li class="param">
                    
                        <code class="param-name">angle</code>
                        <span class="type"><a href="https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Number" class="crosslink external" target="_blank">Number</a></span>
                    

                    

                    <div class="param-description">
                        
                    </div>

                    
                </li>
            
            </ul>
        </div>
    

    

    
</div>

                
                    <div id="method_sign" class="method item public inherited">
    <h3 class="name"><code>sign</code></h3>

    
        <span class="paren">()</span>
    

    

    

    
        <span class="flag public">public</span>
    

    

    

    

    

    <div class="meta">
        
            
                <p>Inherited from
                <a href="../classes/CGSGVector2D.html#method_sign">CGSGVector2D</a>:
            
        
        
        <a href="../files/src_utils_math_class.vector2D.js.html#l251"><code>src&#x2F;utils&#x2F;math&#x2F;class.vector2D.js:251</code></a>
        
        </p>


        

        
    </div>

    <div class="description">
        <p>Determines if a given vector is to the right or left of this vector.</p>

    </div>

    

    

    
</div>

                
                    <div id="method_subtract" class="method item public inherited">
    <h3 class="name"><code>subtract</code></h3>

    
        <div class="args">
            <span class="paren">(</span><ul class="args-list inline commas">
            
                <li class="arg">
                    
                        <code>vector</code>
                    
                </li>
            
            </ul><span class="paren">)</span>
        </div>
    

    

    

    
        <span class="flag public">public</span>
    

    

    

    

    

    <div class="meta">
        
            
                <p>Inherited from
                <a href="../classes/CGSGVector2D.html#method_subtract">CGSGVector2D</a>:
            
        
        
        <a href="../files/src_utils_math_class.vector2D.js.html#l82"><code>src&#x2F;utils&#x2F;math&#x2F;class.vector2D.js:82</code></a>
        
        </p>


        

        
    </div>

    <div class="description">
        <p>returns a new vector subtracted from the value passed in parameter</p>

    </div>

    
        <div class="params">
            <h4>Parameters:</h4>

            <ul class="params-list">
            
                <li class="param">
                    
                        <code class="param-name">vector</code>
                        <span class="type"><a href="../classes/CGSGVector2D.html" class="crosslink">CGSGVector2D</a></span>
                    

                    

                    <div class="param-description">
                        
                    </div>

                    
                </li>
            
            </ul>
        </div>
    

    

    
</div>

                
                    <div id="method_subtractEquals" class="method item public inherited">
    <h3 class="name"><code>subtractEquals</code></h3>

    
        <div class="args">
            <span class="paren">(</span><ul class="args-list inline commas">
            
                <li class="arg">
                    
                        <code>vector</code>
                    
                </li>
            
            </ul><span class="paren">)</span>
        </div>
    

    

    

    
        <span class="flag public">public</span>
    

    

    

    

    

    <div class="meta">
        
            
                <p>Inherited from
                <a href="../classes/CGSGVector2D.html#method_subtractEquals">CGSGVector2D</a>:
            
        
        
        <a href="../files/src_utils_math_class.vector2D.js.html#l92"><code>src&#x2F;utils&#x2F;math&#x2F;class.vector2D.js:92</code></a>
        
        </p>


        

        
    </div>

    <div class="description">
        <p>subtract to this vector, the value passed in parameter</p>

    </div>

    
        <div class="params">
            <h4>Parameters:</h4>

            <ul class="params-list">
            
                <li class="param">
                    
                        <code class="param-name">vector</code>
                        <span class="type"><a href="../classes/CGSGVector2D.html" class="crosslink">CGSGVector2D</a></span>
                    

                    

                    <div class="param-description">
                        
                    </div>

                    
                </li>
            
            </ul>
        </div>
    

    

    
</div>

                
                    <div id="method_toString" class="method item public inherited">
    <h3 class="name"><code>toString</code></h3>

    
        <span class="paren">()</span>
    

    

    

    
        <span class="flag public">public</span>
    

    

    

    

    

    <div class="meta">
        
            
                <p>Inherited from
                <a href="../classes/CGSGVector2D.html#method_toString">CGSGVector2D</a>:
            
        
        
        <a href="../files/src_utils_math_class.vector2D.js.html#l344"><code>src&#x2F;utils&#x2F;math&#x2F;class.vector2D.js:344</code></a>
        
        </p>


        

        
    </div>

    <div class="description">
        <p>Get a string representing this vector</p>

    </div>

    

    

    
</div>

                
                    <div id="method_unit" class="method item public inherited">
    <h3 class="name"><code>unit</code></h3>

    
        <span class="paren">()</span>
    

    

    

    
        <span class="flag public">public</span>
    

    

    

    

    

    <div class="meta">
        
            
                <p>Inherited from
                <a href="../classes/CGSGVector2D.html#method_unit">CGSGVector2D</a>:
            
        
        
        <a href="../files/src_utils_math_class.vector2D.js.html#l280"><code>src&#x2F;utils&#x2F;math&#x2F;class.vector2D.js:280</code></a>
        
        </p>


        

        
    </div>

    <div class="description">
        <p>Get unit vector of this vector and another vector</p>

    </div>

    

    

    
</div>

                
                    <div id="method_unitEquals" class="method item public inherited">
    <h3 class="name"><code>unitEquals</code></h3>

    
        <span class="paren">()</span>
    

    

    

    
        <span class="flag public">public</span>
    

    

    

    

    

    <div class="meta">
        
            
                <p>Inherited from
                <a href="../classes/CGSGVector2D.html#method_unitEquals">CGSGVector2D</a>:
            
        
        
        <a href="../files/src_utils_math_class.vector2D.js.html#l306"><code>src&#x2F;utils&#x2F;math&#x2F;class.vector2D.js:306</code></a>
        
        </p>


        

        
    </div>

    <div class="description">
        <p>Get unit vector of this vector and another vector</p>

    </div>

    

    

    
</div>

                
                    <div id="method_unitFast" class="method item public inherited">
    <h3 class="name"><code>unitFast</code></h3>

    
        <span class="paren">()</span>
    

    

    

    
        <span class="flag public">public</span>
    

    

    

    

    

    <div class="meta">
        
            
                <p>Inherited from
                <a href="../classes/CGSGVector2D.html#method_unitFast">CGSGVector2D</a>:
            
        
        
        <a href="../files/src_utils_math_class.vector2D.js.html#l289"><code>src&#x2F;utils&#x2F;math&#x2F;class.vector2D.js:289</code></a>
        
        </p>


        

        
    </div>

    <div class="description">
        <p>Get approximation of unit vector of this vector and another vector</p>

    </div>

    

    

    
</div>

                
            </div>
        

        
            <div id="properties" class="api-class-tabpanel">
                <h2 class="off-left">Properties</h2>

                
                    <div id="property_height" class="property item">
    <h3 class="name"><code>height</code></h3>
    <span class="type"><a href="https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Number" class="crosslink external" target="_blank">Number</a></span>

    

    

    

    

    <div class="meta">
        
            
                
                <p>
                
                Defined in
                
            
        
        
        <a href="../files/src_utils_class.region.js.html#l238"><code>src&#x2F;utils&#x2F;class.region.js:238</code></a>
        
        </p>

        

        
    </div>

    <div class="description">
        <p>Alias to the y attribute</p>

    </div>

    

    

    
</div>

                
                    <div id="property_width" class="property item">
    <h3 class="name"><code>width</code></h3>
    <span class="type"><a href="https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Number" class="crosslink external" target="_blank">Number</a></span>

    

    

    

    

    <div class="meta">
        
            
                
                <p>
                
                Defined in
                
            
        
        
        <a href="../files/src_utils_class.region.js.html#l232"><code>src&#x2F;utils&#x2F;class.region.js:232</code></a>
        
        </p>

        

        
    </div>

    <div class="description">
        <p>Alias to the x attribute</p>

    </div>

    

    

    
</div>

                
                    <div id="property_x" class="property item inherited">
    <h3 class="name"><code>x</code></h3>
    <span class="type"><a href="https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Number" class="crosslink external" target="_blank">Number</a></span>

    

    

    

    

    <div class="meta">
        
            
                <p>Inherited from
                <a href="../classes/CGSGVector2D.html#property_x">CGSGVector2D</a>:
            
        
        
        <a href="../files/src_utils_math_class.vector2D.js.html#l40"><code>src&#x2F;utils&#x2F;math&#x2F;class.vector2D.js:40</code></a>
        
        </p>

        

        
    </div>

    <div class="description">
        
    </div>

    

    

    
</div>

                
                    <div id="property_y" class="property item inherited">
    <h3 class="name"><code>y</code></h3>
    <span class="type"><a href="https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Number" class="crosslink external" target="_blank">Number</a></span>

    

    

    

    

    <div class="meta">
        
            
                <p>Inherited from
                <a href="../classes/CGSGVector2D.html#property_y">CGSGVector2D</a>:
            
        
        
        <a href="../files/src_utils_math_class.vector2D.js.html#l45"><code>src&#x2F;utils&#x2F;math&#x2F;class.vector2D.js:45</code></a>
        
        </p>

        

        
    </div>

    <div class="description">
        
    </div>

    

    

    
</div>

                
            </div>
        

        

        
    </div>
</div>

                    </div>
                </div>
            </div>
        </div>
    </div>
</div>
<script src="../assets/vendor/prettify/prettify-min.js"></script>
<script>prettyPrint();</script>
<script src="../assets/js/yui-prettify.js"></script>
<script src="../assets/../api.js"></script>
<script src="../assets/js/api-filter.js"></script>
<script src="../assets/js/api-list.js"></script>
<script src="../assets/js/api-search.js"></script>
<script src="../assets/js/apidocs.js"></script>
</body>
</html>
